<?php

/**
 * 
 */
function __check_domain() {
    $domains = array(
        'admin.iscard.cn' => 'admin.iscard.cn',
        'admin.che.com' => 'admin.che.com',
        '192.168.7.249' => 'www.dcmsm.com',
        '172.16.120.251' => 'www.dcmsm.com',
//        '172.16.120.251' => 'admin.che.com',
        '192.168.7.252' => 'www.mmspm.net',
 //       '127.0.0.1' => 'over.admin.com',
         'www.xiaou.com' => 'www.xiaou.com',
        'www.dcmsm.com' => 'www.dcmsm.com',
        'over.admin.com' => 'over.admin.com',
	'www.mmspm.net' => 'www.mmspm.net',
	'192.168.7.251' => 'www.mmspm.net',
        
    );
    if (!isset($domains[$_SERVER['HTTP_HOST']])) {
        die('Domain access denied');
    }
    #域名
    define('DOMAIN', $domains[$_SERVER['HTTP_HOST']]);
}

__check_domain();

